//
//  DWRollScrollView.h
//  scrollView
//
//  Created by 吴建东 on 16/6/13.
//  Copyright © 2016年 DickyWoo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AdvertiseGallery.h"

@protocol DWRollScrollViewDelegate <NSObject>
- (void)scrollViewDidSelectAtIndex:(NSInteger)selectIndex;

@end

@interface DWRollScrollView : UIView

/** 图片数据源 */
@property (nonatomic, copy) NSMutableArray *imageDataArray;

/** 左右显示视图的宽度，默认10.0f，最大值为self宽度1/10 */
@property (nonatomic, assign) CGFloat showRedundantWidth;

/** 竖直间距，默认10.0f，最大值为self宽度1/10 */
@property (nonatomic, assign) CGFloat verticalInterval;

/** 图片圆角属性，默认0.0f */
@property (nonatomic, assign) CGFloat cornerRadius;

/** 自动滚动间隔时间,默认5.0s */
@property (nonatomic, assign) CGFloat autoScrollTimeInterval;

/** 是否自动滚动,默认Yes */
@property (nonatomic, assign) BOOL autoScroll;

@property (nonatomic, weak) id<DWRollScrollViewDelegate>delegate;

/**
 *  刷新页面
 */
- (void)reloadView;

@end
